package org.caw.domain.descriptor;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "table")
public class TableDescriptor implements Serializable {

	private static final long serialVersionUID = 2531465197676293763L;

	@XmlElement(name = "name")
	private String name;

	@XmlElement(name = "enabled")
	private boolean enabled;

	@XmlElement(name = "family")
	private List<FamilyDescriptor> familyDescriptors;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public List<FamilyDescriptor> getFamilyDescriptors() {
		return familyDescriptors;
	}

	public void setFamilyDescriptors(List<FamilyDescriptor> familyDescriptors) {
		this.familyDescriptors = familyDescriptors;
	}
}
